package com.bridgeintelligent.tag.webserver.system.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @description
 * @author: liwei 2023-11-08 14:12
 **/
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(description = "公告信息类")
public class NoticeModel {
    @ApiModelProperty("id")
    private String id;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("投产日期")
    private String proDate;
    @ApiModelProperty("状态")
    private String status;//0未开启 1启用 2下架
    @ApiModelProperty("创建日期")
    private String createTime;
    @ApiModelProperty("修改日期")
    private String uptTime;
    @ApiModelProperty("页数")
    private Integer pageNumber;
    @ApiModelProperty("条数")
    private Integer pageSize;

    public Integer getPageNumber() {
        return pageNumber == null ? 1 : pageNumber;
    }

    public Integer getPageSize() {
        return pageSize == null ? 10 : pageSize;
    }
}
